<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>axios基本使用</title>
</head>
<body>
    <script src="./js/axios.js"></script>
    <script>
        axios.get('http://localhost:3000/adata').then(function(response){
            //response对象中封装了很多响应的相关的数据
            console.log(response.data);
        });
    </script>
</body>
</html>